﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Lukianol.Web.Report
{
    public abstract class ReportFormatInfoProvider : IReportFormatInfoProvider
    {
        private readonly string _name;

        protected ReportFormatInfoProvider(string name)
        {
            if (name == null) throw new ArgumentNullException("name");
            _name = name;
        }

        public string Name
        {
            get { return _name; }
        }

        public virtual IEnumerable<KeyValuePair<string, string>> GetParameters()
        {
            return Enumerable.Empty<KeyValuePair<string, string>>();
        }

        public abstract string ContentType { get; }
        public abstract string FileExtension { get; }
    }
}